<?php
class MapWidget extends CWidget
{
    public $width = 300;
    public $height = 200;
    public $zoom_level = 16;
    public $longitude = 103.961426;
    public $latitude = 30.784382;
    public $enableDragging = false;
    public function init()
    {
        parent::init();
    }

    public function run()
    {
    	$width=$this->width;
    	$height=$this->height;
    	$enableDragging=$this->enableDragging;
    	$map_longitude=$this->longitude;
    	$map_latitude=$this->latitude;
        $zoom_level = $this->zoom_level; 
        $this->render('map',compact('map_longitude','map_latitude','width','height','enableDragging','zoom_level'));
    }
}
?>
